This function is suitable for 3D plotting either of closed bodies or 3D surfaces. The values in matrix Z represent the heights above a grid in the x-y plane defined by X and Y
Args
X,Y,Z: Three matrices of the same size and type float.
Kwargs
type: The face type. Either :tri (the default) or :quad for triangular or quadrangular faces.
bfculling: Boolean that specifies if culling of invisible faces is wished (default is true)
proj or proj4: A proj4 string for setting the Coordinate Referencing System (optional).
wkt: A WKT SRS (optional).
epsg: Same as proj but using an EPSG code (optional).
top: A Faces 1 row matrix with the top of the body (optional). Note that we have to impose that this is an already created faces matrix because inside this function we no longer know what the order of the X and Y matrices represent.
bottom: A Faces 1 row matrix with the bottom of the body (optional).
usingGMTX,Y =meshgrid(1:0.5:10,1.:20);Z =sin.(X) .+cos.(Y);FV =surf2fv(X, Y, Z);viz(FV)
┌ Warning: More than 2/3 of the faces found invisible (actually: 74.26900584795322%). This often indicates that the Z and X,Y units are not the same. Consider setting `bfculling` to false or use the `nocull=true` option, or using the `zscale` field of the `FV` input.
└ @ GMT C:\Users\j\.julia\dev\GMT\src\psxy.jl:1567